package androidx.appcompat.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ActionMode.Callback;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.CheckedTextView;
import androidx.annotation.DrawableRes;
import androidx.core.widget.TextViewCompat;
import o.ar;
import o.cc;
import o.cf;
import o.ct;
import o.cw;

public class AppCompatCheckedTextView extends CheckedTextView {
    private static final int[] ˋ = new int[]{16843016};
    private final cc ˊ;

    public AppCompatCheckedTextView(Context context) {
        this(context, null);
    }

    public AppCompatCheckedTextView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 16843720);
    }

    public AppCompatCheckedTextView(Context context, AttributeSet attributeSet, int i) {
        super(ct.ˋ(context), attributeSet, i);
        this.ˊ = new cc(this);
        this.ˊ.ˏ(attributeSet, i);
        this.ˊ.ˊ();
        cw ॱ = cw.ॱ(getContext(), attributeSet, ˋ, i, 0);
        setCheckMarkDrawable(ॱ.ˋ(0));
        ॱ.ॱ();
    }

    public void setCheckMarkDrawable(@DrawableRes int i) {
        setCheckMarkDrawable(ar.ˋ(getContext(), i));
    }

    public void setTextAppearance(Context context, int i) {
        super.setTextAppearance(context, i);
        if (this.ˊ != null) {
            this.ˊ.ˋ(context, i);
        }
    }

    protected void drawableStateChanged() {
        super.drawableStateChanged();
        if (this.ˊ != null) {
            this.ˊ.ˊ();
        }
    }

    public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        return cf.ˊ(super.onCreateInputConnection(editorInfo), editorInfo, this);
    }

    public void setCustomSelectionActionModeCallback(Callback callback) {
        super.setCustomSelectionActionModeCallback(TextViewCompat.ˏ(this, callback));
    }
}
